import json
import logging

logger = logging.getLogger(__name__)


def json_loads(json_str):
    try:
        result = json.loads(json_str)
        return result
    except Exception as e:
        del e
        return ""


def get_item(items, index):
    try:
        return items[index]
    except Exception as e:
        del e
        return ""
